<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>供求详情</title>
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
</head>

 

<body>

    <table id="demo" lay-filter="test"></table>

    <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
    <script>
        layui.use('table', function () {
            var table = layui.table;

            //第一个实例
            table.render({
                elem: '#demo'
                , height: 312
                , url: 'http://www.ydcrms.com:8013/wx/content/index' //数据接口
                , page: false //开启分页
                , cols: [[ //表头
                    { type: "checkbox", width: 50 },
                    { field: 'id', width: 60, title: 'ID', sort: true, search:false},
                    { field: 'user_id', title: '用户id' },   					
                    { field: 'intro', title: '内容',search:false },   
                    { field: 'status', width: 60,title: '状态',search:false },  
                    { field: 'likes', width: 60,title: '点赞人数',search:false },  
					{ field: 'create_time',  title: '更新时间',search:false},
                    { field: 'update_time',  title: '更新时间',search:false},
                ]]
            });

        });
    </script>
</body>

</html>